cmake_minimum_required(VERSION 3.16)
project(hxPrintf C)
set(CMAKE_C_STANDARD 99)
if (${CMAKE_SOURCE_DIR}==${CMAKE_CURRENT_SOURCE_DIR})
    add_compile_options(-m64)
    add_executable(hxPrintf hxMain.c hxPrintf.c)
else ()
    set(HXPRINTF_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/hxPrintf.c" PARENT_SCOPE)
endif ()